package com.peng.mapper;

import com.peng.pojo.Role;
import com.peng.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface UserMapper {
    @Select("select * from tb_user where username = #{username}")
    User selectUserByUserName(String username);

    @Select("select * from tb_role where id = #{id}")
    Role selectRoleById(int id);
}
